/**
 * Created by showtan on 2018/12/27.
 * 适配
 * @param {width、height} px 
 */

import { Dimensions } from 'react-native'

const deviceW = Dimensions.get('window').width;
const basePx = 375;

export default function adapt(px) {
  return px * deviceW / basePx;
};